<template>
  <div class="card board">
    <ScanBoard ref="scanBoardRef" />
    <!-- <MainBoard /> -->
  </div>
</template>

<script lang="ts" setup>
import { onActivated, ref } from "vue";
import ScanBoard from "./components/ScanBoard.vue";
// import MainBoard from "./components/MainBoard.vue";

const scanBoardRef = ref();
onActivated(() => {
  scanBoardRef.value?.cacheFileNameHandle();
  scanBoardRef.value?.refreshEditBarNodes(); // 刷新dialog的树组件
});
</script>

<style lang="scss" scoped>
.board {
  height: 100%;
  padding: 0;
}
</style>
